/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author Tjarco
 */
public class gui_naFilmpje extends javax.swing.JFrame {
    private boolean buttonBeëndigPressed = false;
    private boolean buttonGamePressed = false;
    private boolean buttonBackPressed = false;
    
// <editor-fold defaultstate="collapsed" desc=" getters en setters ">
    public boolean isButtonBackPressed() {
        return buttonBackPressed;
    }
    
    public void setButtonBackPressed(boolean buttonBackPressed) {
        this.buttonBackPressed = buttonBackPressed;
    }
    
    public void setButtonBeëndigPressed(boolean buttonFilmpjePressed) {
        this.buttonBeëndigPressed = buttonFilmpjePressed;
    }
    
    public void setButtonGamePressed(boolean buttonGamePressed) {
        this.buttonGamePressed = buttonGamePressed;
    }
    
    public boolean isButtonBeëindigPressed() {
        return buttonBeëndigPressed;
    }
    
    public boolean isButtonGamePressed() {
        return buttonGamePressed;
    }

// </editor-fold>

    /**
     * Creates new form gui_main
     */
    public gui_naFilmpje() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGame = new javax.swing.JButton();
        buttonBeëndig = new javax.swing.JButton();
        jButton_back = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(1280, 720));
        setResizable(false);
        setUndecorated(true);
        getContentPane().setLayout(null);

        buttonGame.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonGame.setForeground(new java.awt.Color(51, 51, 255));
        buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGame.png"))); // NOI18N
        buttonGame.setBorderPainted(false);
        buttonGame.setContentAreaFilled(false);
        buttonGame.setFocusPainted(false);
        buttonGame.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonGameMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonGameMouseExited(evt);
            }
        });
        buttonGame.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonGameActionPerformed(evt);
            }
        });
        getContentPane().add(buttonGame);
        buttonGame.setBounds(170, 184, 410, 280);

        buttonBeëndig.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonBeëndig.setForeground(new java.awt.Color(51, 51, 255));
        buttonBeëndig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindig.png"))); // NOI18N
        buttonBeëndig.setBorderPainted(false);
        buttonBeëndig.setContentAreaFilled(false);
        buttonBeëndig.setFocusPainted(false);
        buttonBeëndig.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonBeëndigMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonBeëndigMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonBeëndigMouseExited(evt);
            }
        });
        buttonBeëndig.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonBeëndigActionPerformed(evt);
            }
        });
        getContentPane().add(buttonBeëndig);
        buttonBeëndig.setBounds(720, 180, 410, 290);

        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/anotherScene.png"))); // NOI18N
        jButton_back.setBorderPainted(false);
        jButton_back.setContentAreaFilled(false);
        jButton_back.setFocusPainted(false);
        jButton_back.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton_backMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jButton_backMouseExited(evt);
            }
        });
        jButton_back.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_backActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_back);
        jButton_back.setBounds(120, 560, 460, 150);

        jLabel1.setFont(new java.awt.Font("Calibri", 0, 50)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 51, 204));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Do you want to play the game, or end te MME?");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 1280, 120);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/background.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(0, -30, 1280, 770);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonGameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonGameActionPerformed
            this.buttonGamePressed = true;
   }//GEN-LAST:event_buttonGameActionPerformed

    private void buttonBeëndigActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonBeëndigActionPerformed
            this.buttonBeëndigPressed = true;
    }//GEN-LAST:event_buttonBeëndigActionPerformed

    private void buttonBeëndigMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonBeëndigMouseEntered
        buttonBeëndig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindigGlow.png")));
    }//GEN-LAST:event_buttonBeëndigMouseEntered

    private void buttonBeëndigMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonBeëndigMouseExited
        buttonBeëndig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindig.png")));
    }//GEN-LAST:event_buttonBeëndigMouseExited

    private void buttonGameMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonGameMouseEntered
        buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGameGlow.png")));
    }//GEN-LAST:event_buttonGameMouseEntered

    private void buttonGameMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonGameMouseExited
         buttonGame.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonGame.png")));
    }//GEN-LAST:event_buttonGameMouseExited

    private void buttonBeëndigMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonBeëndigMouseClicked
        this.buttonBeëndigPressed = true;
    }//GEN-LAST:event_buttonBeëndigMouseClicked

    private void jButton_backMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseEntered
        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/anotherSceneGlow.png")));
    }//GEN-LAST:event_jButton_backMouseEntered

    private void jButton_backMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseExited
       jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/anotherScene.png")));
    }//GEN-LAST:event_jButton_backMouseExited

    private void jButton_backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_backActionPerformed
        buttonBackPressed = true;
    }//GEN-LAST:event_jButton_backActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(gui_naFilmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(gui_naFilmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(gui_naFilmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(gui_naFilmpje.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

           public void run() {
                new gui_naFilmpje().setVisible(true);
           }
        });
    }
    
        private void voledigScherm(){
        
        //Zet het scherm op voledig scherm;
        addWindowListener(new WindowAdapter() {
        public void windowOpened(WindowEvent e) {
        setExtendedState(MAXIMIZED_BOTH);
            }
         });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton buttonBeëndig;
    public javax.swing.JButton buttonGame;
    private javax.swing.JButton jButton_back;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
